package com.zan.pattern.mediator;

/**
 * @Author Zan
 * @Create 2024/4/27 16:07
 * @Description : 具体同事角色类
 * @ClassName: HouseOwner
 */
public class HouseOwner extends Person {

    public HouseOwner(String name, Mediator mediator) {
        super(name, mediator);
    }

    // 和中介联系（沟通）
    public void constact(String message) {
        mediator.constact(message, this);
    }

    // 获取信息
    public void getMessage(String message) {
        System.out.println("房东" + name + "获取到的信息是：" + message);
    }
}
